import { queryTestData, runTestCaseByScenario } from "../../support/utils";
  
const scenarios =  <%=JSON.stringify(scenarios) %>

describe('<%= feature %>', () => {
  
  beforeEach(() => {
    queryTestData('<%= feature %>');
    cy.visit('');
    <% if ( hasPreAction ){ %>
    // 处理前置操作
    const preActions = require('../../beforeEach.json')
    cy.runCases(preActions);
    <% } %>
  });
  
  runTestCaseByScenario(scenarios);
});